package com.hjw.httpclient;

import com.hjw.httpclient.retry.MyRetryStrategy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@ConfigurationPropertiesScan(value = "com.hjw.httpclient")
public class HttpClientApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(HttpClientApplication.class, args);
        MyRetryStrategy bean = run.getBean(MyRetryStrategy.class);
        System.out.println(bean);
    }

}
